﻿using Adnc.Application.Shared.Services;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using WYT.Ord.Application.Contracts.Dtos.Coupon;

namespace WYT.Ord.Application.Contracts.Services
{
    /// <summary>
    /// 优惠券服务
    /// </summary>
    public interface ICouponAppService : IAppService
    {
        /// <summary>
        /// 获取用户当前有效的优惠券
        /// </summary>
        /// <param name="userId">用户ID</param>
        /// <returns></returns>
        Task<AppSrvResult<List<CouponDto>>> GetCouponAsync(long userId);

        /// <summary>
        /// 获取用户抵扣券信息
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        Task<AppSrvResult<UserDeductionCouponDto>> GetUserDeductionCouponInfor(long userId);
    }
}
